import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import staff from '@/components/staff'
import Login from '@/components/Login'
import addDeptar from '@/components/addDeptar'
import Staffshow from '@/components/Staffshow'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/staff',
      name: 'staff',
      component: staff
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/adddeptar',
      name: 'addDeptar',
      component: addDeptar
    },
    {
      path: '/Staffshow',
      name: 'Staffshow',
      component: Staffshow
    }
  ]
})
